import request from '~/utils/request'

export default {
  /**
   * 注册
   * @param {*} member
   * @returns
   */
  register(member) {
    return request({
      baseURL: "http://localhost:9110",
      url: '/service-member/api/member/register',
      method: 'post',
      data: member
    })
  },
  /**
   * 邮箱发送验证码
   * @param {*} email
   * @returns
   */
  sendEmail(email) {
    return request({
      baseURL: 'http://localhost:9110',
      url: `/service-member/api/mail/code/${email}`,
      method: 'post',

    })
  }
}
